



<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


		{if  isset($_GET['action'])}
			<center><h3> 客户消费[{$_GET['iphone']}]-[{$_GET['username']}] -余额[<span style="color: #fb3636;">{$_GET['balance']}</span>] </h3></center>
			<input id="c-action" style="display: none;" name="row['action']" type="text" value="minus">
		{elseif isset($_GET['iphone'])}
			<center><h3> 客户充值[{$_GET['iphone']}]-[{$_GET['username']}] -余额[<span style="color: #fb3636;">{$_GET['balance']}</span>]</h3></center>
		{else}
		{/if}
	
<!-- 	<pre>
	{$_GET|var_dump}
	
	</pre> -->
	{foreach name="form_params" item="obj"}
	
		{if (strpos($obj.zone, 'add') !== false) }
		
			<div class="form-group">
				<label class="control-label col-xs-12 col-sm-2">{$obj.name}</label>
				<div class="col-xs-12 col-sm-8">						

					{if $obj.key  == 'status'}
					
						 <div class="radio">
							{foreach name="statusList" item="vo"}
							<label for="row[status]-{$key}">
							<input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="normal"}checked{/in} />
							{$vo}</label> 
							{/foreach}
						</div>
					{elseif $obj.key == 'iphone' || $obj.key == 'username' }
						{if isset($_GET[$obj.key])}
							<div class="col-xs-12 col-sm-8">
								<input id="c-{$obj.key}" data-rule="{if $obj.required}required{/if}" readonly class="form-control" name="row[{$obj.key}]" type="text" value="{$_GET[$obj.key]}">
							</div>
						
						
						{else}
							<div class="col-xs-12 col-sm-8">
								<input id="c-{$obj.key}" data-rule="{if $obj.required}required{/if}" class="form-control" name="row[{$obj.key}]" type="text" value="">
							</div>
							
						
						{/if}
					{else}
						<div class="col-xs-12 col-sm-8">
							<input id="c-{$obj.key}" data-rule="{if $obj.required}required{/if}" class="form-control" name="row[{$obj.key}]" type="text" value="">
						</div>
					{/if}

					
				</div>
			</div>
				
		
			
		{/if}
	{/foreach}
		

	
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
